
<form name="editForm" role="form" novalidate ng-submit="vm.save()">

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                ng-click="vm.clear()">&times;</button>
        <h4 class="modal-title" id="myWcQuestionLabel" data-translate="byibserverApp.wcQuestion.home.createOrEditLabel">Create or edit a Wc Question</h4>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" ng-show="vm.wcQuestion.id">
            <label for="id" data-translate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                    ng-model="vm.wcQuestion.id" readonly />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcQuestion.qInfo" for="field_qInfo">Q Info</label>
            <input type="text" class="form-control" name="qInfo" id="field_qInfo"
                    ng-model="vm.wcQuestion.qInfo"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcQuestion.aInfo" for="field_aInfo">A Info</label>
            <input type="text" class="form-control" name="aInfo" id="field_aInfo"
                    ng-model="vm.wcQuestion.aInfo"
                    />
        </div>

        <div class="form-group">
            <label data-translate="byibserverApp.wcQuestion.wcProduct" for="field_wcProduct">Wc Product</label>
            <select class="form-control" id="field_wcProduct" name="wcProduct" ng-model="vm.wcQuestion.wcProductId" ng-options="wcProduct.id as wcProduct.name for wcProduct in vm.wcproducts"            >
                <option value=""></option>
            </select>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.clear()">
            <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span data-translate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" ng-disabled="editForm.$invalid || vm.isSaving" class="btn btn-primary">
            <span class="glyphicon glyphicon-save"></span>&nbsp;<span data-translate="entity.action.save">Save</span>
        </button>
    </div>
</form>
